package com.example.androidproject.chat.pojo;

public class ChatMessage {
    private int id;
    private String message;
    private String dateTime;
    private int identity;

    public ChatMessage(String message, String dateTim) {
        this.message = message;
        this.dateTime = dateTime;
    }
    public ChatMessage(int id, String message, int identity) {
        this.id = id;
        this.message = message;
        this.identity = identity;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getDateTime() {
        return dateTime;
    }

    public void setDateTime(String dateTime) {
        this.dateTime = dateTime;
    }

    public int getIdentity() {
        return identity;
    }

    public void setIdentity(int identity) {
        this.identity = identity;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "ChatMessage{" +
                "message='" + message + '\'' +
                ", dateTime='" + dateTime + '\'' +
                ", identity=" + identity +
                '}';
    }
}